package com.lemon.boot.service;

import com.lemon.boot.common.base.BaseService;
import com.lemon.boot.dto.MenuResourceDTO;
import com.lemon.boot.po.MenuResourcePO;
import com.lemon.boot.po.TenantMenuPO;
import com.lemon.boot.vo.TenantMenuResourceVO;
import com.lemon.boot.vo.TreeSelectVO;

import java.util.List;
import java.util.Map;

/**
 * 菜单-接口中间表 业务接口
 *
 * @author 李猛
 * @since 2024-02-11
 */
public interface IMenuResourceService extends BaseService<MenuResourcePO, MenuResourceDTO> {
    List<String> getByUserId(Long userId, Long tenantId, List<Long> roleIdList);

    void setByTenantIdMenuId(Long tenantId, List<TenantMenuPO> tenantMenuList, List<TenantMenuResourceVO> tenantMenuResourceList);

    Map<Long, List<Long>> getByGroupTenantMenuId(Long tenantId, List<Long> tenantMenuIdList);
}